﻿using Zdotp.Actor;
using Zdotp.Actor.Kcp;
using Zdotp.ObjectPool;

namespace DemoServer;

internal class Program
{
    public static void Main(string[] args)
    {
        var actorSystem = new ActorSystem("demo-system");
        ObjectPoolManager.IsLogger = true;
        actorSystem.AddActor(() => new ActorKcp("127.0.0.1", 7890), 1);
        actorSystem.AddActor(() => new TestActor(), 2);
        actorSystem.Start([typeof(Program).Assembly]);
    }
}